home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
reaspect.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
655b
|
38 lines
/*
* $VER: ReAspect 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Resize a just-scanned image (at 1:1 pixel aspect) to show
* properly in a 640x400 hires interlaced monitor display.
*
*/
OPTIONS RESULTS
Redraw Off
GetMain
PARSE VAR result '"'name'"' w h d ax ay .
/* we're not using SetAspect becuase we want to do this with
one scale operation instead of two */
h = (h * ay * 22) % (26 * ax)
IF h > w THEN DO
nh = 400
nw = w * nh % h
Scale nw nh
END
ELSE DO
nw = 640
nh = h * nw % w
Scale nw nh
END
Undo Off ; Scale Border 640 400 ; Undo On
EXIT